package com.cloudbroker.bcs.platform.dav.common.controller;

import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.cloudbroker.bcs.common.util.VOUtil;
import com.cloudbroker.bcs.platform.dav.common.ext.annotation.SaveLog;

/**
 * Created by xuyn15828 on 2016/6/1.
 */
@Controller
public class CacheController {
    //    @Resource
    //    private CacheT2BizService cacheT2;
    //
    //    @ResponseBody
    //    @RequestMapping("/func_clear_dbcache")
    //    @SaveLog(remark = "调用股票更新任务")
    //    public HSBCPSBackVO funcClearDBCache(HttpServletRequest request , String jsonpcallback) {
    //        HSBCPSVO form = getSingleParameterMapForBody(request , HSBCPSVO.class);
    //        return VOUtil.setJsonpResult(cacheT2.funcClearDBCache(form), jsonpcallback);
    //    }
    //TODO:增加一个测试接口，后续可删除
    @ResponseBody
    @RequestMapping("/ifsdav/test")
    @SaveLog(remark = "测试")
    public Map<String, Object> test(HttpServletRequest request, String jsonpcallback) {
        Map<String, Object> result = new HashMap<String, Object>();
        result.put("good", "success");
        return VOUtil.setJsonpResult(result, jsonpcallback);
    }
    
}
